package com.yunsc.order.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yunsc.common.serializer.TimestampToDateSerializer;
import lombok.Data;

import java.io.Serializable;

/**
 * 订单导出Excel记录表
 * 
 * @author adan
 * @email 2028038953@qq.com
 * @date 2024-04-05 01:37:48
 */
@Data
@TableName("yunsc_order_export")
public class YunscOrderExportEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键ID
	 */
	@TableId
	private Integer id;
	/**
	 * 下单时间(开始)
	 */

	@JsonSerialize(using = TimestampToDateSerializer.class)
	private Integer startTime;
	/**
	 * 下单时间(结束)
	 */

	@JsonSerialize(using = TimestampToDateSerializer.class)
	private Integer endTime;
	/**
	 * excel文件路径
	 */
	private String filePath;
	/**
	 * 导出状态(10进行中 20已完成 30失败)
	 */
	private Integer status;
	/**
	 * 商城ID
	 */
	private Integer storeId;
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@JsonSerialize(using = TimestampToDateSerializer.class)
	private Integer createTime;

	@TableField(exist = false)
	private String downloadUrl;

}
